package com.bitcola.security.activity.rest;

import com.bitcola.security.activity.biz.SignUpBiz;
import com.bitcola.security.activity.biz.SystemBiz;
import com.bitcola.security.activity.biz.UserInviterBiz;
import com.bitcola.security.activity.feign.IDataServiceFeign;
import com.bitcola.security.auth.client.annotation.IgnoreClientToken;
import com.bitcola.security.auth.client.annotation.IgnoreUserToken;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 *  @author wx
 * @create 2018-11-29 20:47
 **/
@RestController
@RequestMapping("activity/power")
public class Controller {
    @Autowired
    UserInviterBiz userInviterBiz;




    @IgnoreUserToken
    @IgnoreClientToken
    @RequestMapping(value = "power",method = RequestMethod.GET)

    public BigDecimal getUserPower(String userId)
    {

        return userInviterBiz.userNetMap.get(userId).getSelfPower();

    }











}
